import 'package:flutter/material.dart';
import 'package:flutter_keep_book/app/widgets/rounded_container.dart';

import '../../widgets/title_bar.dart';

class ItemSavePage extends StatelessWidget {
  const ItemSavePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: titleBar(context, title: "新增记账"),
      body: const _ItemSaveBody(),
    );
  }
}

class _ItemSaveBody extends StatefulWidget {
  const _ItemSaveBody({super.key});

  @override
  State<_ItemSaveBody> createState() => _ItemSaveBodyState();
}

class _ItemSaveBodyState extends State<_ItemSaveBody> {
  @override
  Widget build(BuildContext context) {
    return RoundedContainer(
      padding: const EdgeInsets.all(16),
      child: Column(
        children: [_kpClassLevel(),const SizedBox(height: 8,), _kpDataTime()],
      ),
    );
  }

  Widget _kpClassLevel() {
    return const Row(
      mainAxisAlignment: MainAxisAlignment.spaceBetween,
      children: [Text("分类"), Text("请选择分类>")],
    );
  }

  Widget _kpDataTime() {
    return const Row(
      mainAxisAlignment: MainAxisAlignment.spaceBetween,
      children: [
      Text("记账日期"), Text("请选择记账日期>")
    ],);
  }
}
